﻿/*
 *  Source code courtesy of the desktopWeb.CodePlex.com community project. See MS-PL license on Codeplex.com. 
 *  This is beta code not intended for a production application.
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace MyData.ExpressionBuilder.Model
{

  public class ModelItemExpression
  {
    public delegate void ExpressionManagerHandler(object sender, ExpressionManagerEventArgs e);
    public string ExpressionPath { get; set; }

    public ModelItemExpression(string expressionPath)
    {
      this.ExpressionPath = expressionPath;
    }
  }


  //General ListItem
  public class ListItem
  {
    public ListItem() { }

    public ListItem(string name)
    {
      this.Name = name;
    }

    public ListItem(string name, object value)
    {
      this.Name = name;
      this.Value = value;
    }

    public string Name { get; set; }
    public object Value { get; set; }
  }

  public class ExpressionManagerEventArgs : EventArgs
  {
    public object CommitText { get; set; }
    public ExpressionManagerEventArgs(object commitText)
    {
      this.CommitText = commitText;
    }
  }

}
